from shapes import *



world=TurtleWorld()
wheatly=Turtle()
wheatly.r=5
wheatly.delay=.0
#---------------------------------
def piece(t, size = 10):
    arc(wheatly, size*10, 360/7.0, 100)   
    t.pu()
    t.lt(80)
    t.fd(size*10)
    t.rt(80)
    t.pd()
    t.rt(70)
    t.fd(size*10)
    t.lt(120)
    t.fd(size*5.8)
    #revarse 
    t.pu()
    t.bk(size*5.8)
    t.rt(120)
    t.bk(size*10)
    t.lt(70)
    t.lt(80)
    t.bk(size*10)
    t.rt(80)
    t.pd()
    
    
def logo(t,size = 1):
    t.lt(10)
    for i in range(5):
        piece(t,size*10)
        t.lt(360/6.0)
    t.lt(360/6.0)
    t.rt(10)
    move(t, size*60, -size*17)
    line(t, size*45, size*80)
    line(t, size*10, 0)
    line(t, size*45, -size*80)
    line(t, size*5, size*0)
    line(t, size*-47, size*80)
    line(t, size*-17, size*0)
    line(t, size*-45, size*-80)
    move(t, size*30, size*30)
    line(t, size*-10, size*0)
    line(t,size*65, size*0)
   
    
    
    
    
    
    
    
    
    
logo(wheatly,1)








wait_for_user()